Crate tokio_openssl
source ·Expand description
Async TLS streams backed by OpenSSL
This library is an implementation of TLS streams using OpenSSL for
negotiating the connection. Each TLS stream implements the Read
and
Write
traits to interact and interoperate with the rest of the futures I/O
ecosystem. Client connections initiated from this crate verify hostnames
automatically and by default.
This crate primarily exports this ability through two extension traits,
SslConnectorExt
and SslAcceptorExt
. These traits augment the
functionality provided by the openssl
crate, on which this crate is
built. Configuration of TLS parameters is still primarily done through the
openssl
crate.
Structs
Future returned from
SslAcceptorExt::accept_async
which will resolve
once the accept handshake has finished.Future returned from
SslConnectorExt::connect_async
which will resolve
once the connection handshake has finished.A wrapper around an underlying raw stream which implements the SSL
protocol.
Traits
Extension trait for the
ConnectConfiguration
type in the openssl
crate.Extension trait for the
SslAcceptor
type in the openssl
crate.Extension trait for the
SslConnector
type in the openssl
crate.